@layout("/common/_container.html",{js:["/assets/customer/customer.js"]}){

<div class="layui-body-header">
    <span class="layui-body-header-title">用户表管理</span>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="mobile" class="layui-input" type="text" placeholder="手机号/账号"/>
                            </div>
                            <div class="layui-inline">

                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="customerTable" lay-filter="customerTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    {{# if(d.type==1){ }}
    <a class="layui-btn layui-btn layui-btn-xs" lay-event="command">查看下级</a>
    {{# } }}
    {{# if(d.supports==2){ }}
    <a class="layui-btn layui-btn layui-btn-xs" lay-event="leaders">帮扶领导</a>
    {{# } }}
    <a class="layui-btn layui-btn layui-btn-xs" lay-event="record">返利记录</a>
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
</script>
@}
<script type="text/html" id="imgurl">
    <img src="{{d.avatar}}" style="width: 20px; height: 20px">
</script>
<!--<script type="text/html" id="role">
    {{# if(d.role==0){ }}
    学员
    {{# } }}
    {{# if(d.role==1){ }}
    社长
    {{# } }}
</script>-->
<script type="text/html" id="role">
    <input type="checkbox" lay-filter="role" value="{{d.id}}" lay-skin="switch" lay-text="学员|社长" {{d.role=='1'?'checked':''}} />
</script>